const mongoose = require("mongoose")

const ArticleSchema = new mongoose.Schema({
    title: String, //文章标题
    publishDate: Date, //文章发布日期
    content: String, //文章内容
    thumb:String, //缩略图
    description: String //描述
}, {
    versionKey: false,
    timestamps: {
        createdAt: 'createTime',
        updatedAt: 'updateTime'
    } //自动管理修改时间
})

module.exports = mongoose.model("Article", ArticleSchema);